@import "compass";
@import "compass/reset";
@import "common.scss";

@import "service.scss";
@import "groupSend.scss";
@import "addFriend.scss";
@import "components.scss";
@import "_marketing.scss";
@import "_moments.scss";
@import "_groupmanage.scss";
@import "_statistic.scss";
@import "_addressBook.scss";

html,body {
  height: 100%;
  font-size: 14px;
}
.layui-nav-item {
  margin-left: 8px;
  .head-icon {
    width: 20px;
    height: 20px;
    vertical-align: text-bottom;
    margin-right: 5px;
  }
}
.main-layout-body {
  height: 100%;
  margin-top: -60px;
  padding-top: 60px;
  box-sizing: border-box;
}
.listItem {
  cursor: default;
  height: 58px;
  @include padding2(0, 6px);
  @include justify-content(space-between);
  @include align-items(center);
  @include padding-right(6px);
  .listItemAvatar {
    width: 40px;
    height: 40px;
    margin-right: 4px;
    background: #33ab9f;
    @include flex-shrink(0);
  }
  .listItemInfo {
    @include flex-grow(1);
    @include justify-content(space-between);
    min-width: 0;
    .listItemName {
      height: 20px;
      line-height: 20px;
      font-size: 14px;
    }
    .listItemTopInfo {
      @include justify-content(space-between);
      @include align-items(center);
      margin-bottom: 6px;
    }
    .listItemBottomInfo {
      @include justify-content(space-between);
      font-size: 12px;
      color: #999;
    }
    .listItemTopInfoIcon {
      width: 18px;
      height: 14px;
      background-image: image-url('alwaystop.png');
      background-size: cover;
      cursor: pointer;
    }
    .editServiceInfo {
      background-image: image-url('editServiceInfo.png');
    }
  }
  &.active,&:hover {
    background: #ccc !important;
  }
}
.quickReply {
  @include flex-grow(1);
}
.quickReplyTitle {
  @include padding2(0, 12px);
  margin: 10px 0;
  height: 36px;
  line-height: 36px;
  border-top: 1px solid #ccc;
}
.quickReplies {
  @include padding2(0, 12px);
  @include flex-grow(1);
  border-bottom: 1px solid #ccc;
  .replyContent {
    margin-bottom: 16px;
  }
  .linkReply {
    @include padding2(4px, 4px);
    @include border-radius(4px);
    border: 1px solid #ccc;
    background: #fff;
    .linkTitle {
      height: 24px;
      line-height: 24px;
    }
    .linkContent {
      height: 32px;
      @include justify-content(space-between);
      @include align-items(center);
    }
    .linkDesc {
      @include align-self(flex-start);
    }
    .linkCover {
      width: 30px;
      height: 30px;
      background: #33ab9f;
    }
  }
  .imageReply {
    img {
      width: 40px;
      height: auto;
      background: #33ab9f;
      min-height: 40px;
    }
  }
}
.addQuickReply {
  @include padding2(12px, 12px);
  button {
    margin: 5px;
  }
}
.textQuickReplyDialog,.linkQuickReplyDialog,.imageQuickReplyDialog,.cardQuickReplyDialog,.documentsQuickReplyDialog,.videoQuickReplyDialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 370px;
  height: 300px;
  background: #fff;
  border: 1px solid #ccc;
  .dialogHead {
    height: 40px;
    font-size: 16px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
    @include padding2(14px, 16px);
    @include align-items(center);
    @include justify-content(space-between);
  }
  .editForm {
    @include padding2(0, 16px);
    .editFormItem {
      margin: 8px 0;
      .clickedSpan {
        position: relative;
        margin-left: 50px;
        @include padding2(6px, 6px);
        @include align-self(flex-end);
        input {
          cursor: pointer;
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          left: 0;
          opacity: 0;
        }
      }
      input[type='radio'] {
        margin-right: 4px;
      }
    }
    .formLabel {
      @include flex-shrink(0);
    }
    .avatarEdit {
      @include align-items(center);
    }
    img {
      width: 38px;
      height: 38px;
      background: #33ab9f;
    }
  }
  .submitInfo {
    width: 72px;
    margin-top: 16px;
    height: 38px;
    @include align-self(center);
    &:hover {
      height: 38px;
      margin-top: 16px;
    }
  }
}
.textQuickReplyDialog,.imageQuickReplyDialog {
  width: 260px;
  height: 275px;
  .existLabels {
    @include flex-wrap(wrap);
    span {
      margin: 0 8px 8px 0;
    }
  }
}
.textQuickReplyDialog {
  .editFormItem {
    @include align-items(center);
    @include justify-content(center);
    height: 140px;
  }
}
.linkQuickReplyDialog {
  width: 260px;
  height: 310px;
  .editFormItem input,.editFormItem textarea {
    width: 100%;
  }
  .submitInfo {
    margin-top: 0;
    &:hover {
      margin-top: 0;
    }
  }
  textarea {
    resize: none;
    border: 1px solid #ccc;
    height: 60px;
    @include padding2(6px, 6px);
  }
}
.imageQuickReplyDialog,.videoQuickReplyDialog {
  .editFormItem {
    @include align-items(center);
  }
  .clickedSpan {
    left: -50%;
    transform: translateX(50%);
    margin-top: 12px;
  }
  .submitInfo {
    margin-top: 0;
    &:hover {
      margin-top: 0;
    }
  }
  img {
    width: 120px !important;
    height: 120px !important;
    object-fit: cover;
  }
  video {
    background: #f1f1f1;
    height: 150px;
    outline: none;
  }
}
.cardQuickReplyDialog {
  width: 260;
  height: 370px;
  .editFormItem {
    input {
      margin-left: 16px;
    }
    input[type='text'] {
      height: 36px;
      line-height: 36px;
      width: 300px;
      @include padding2(0, 6px);
    }
  }
  .userItem {
    margin-bottom: 10px;
    padding: 8px 5px;
    cursor: pointer;
    .wxidInfo,.editCardName {
      width: 100px;
    }
    &.activeFriend {
      background: #e6e6e6;
    }
  }
  .cardInfo {
    margin-left: 16px !important;
    overflow: auto;
    height: 160px;
    @include flex-wrap(wrap);
    img {
      width: 40px;
      height: 40px;
      margin-right: 6px;
      background: #33ab9f;
      @include flex-shrink(0);
    }
    .editCardName {
      margin-bottom: 8px;
    }
  }
}
.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 370px;
  height: 300px;
  background: #fff;
  border: 1px solid #ccc;
  .dialogHead {
    height: 40px;
    font-size: 16px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-bottom: 1px solid #ccc;
    @include padding2(14px, 16px);
    @include align-items(center);
    @include justify-content(space-between);
  }
  .editForm {
    @include padding2(0, 16px);
    .editFormItem {
      margin: 8px 0;
      .clickedSpan {
        position: relative;
        margin-left: 50px;
        @include padding2(6px, 6px);
        @include align-self(flex-end);
        input {
          cursor: pointer;
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          left: 0;
          opacity: 0;
        }
      }
      input[type='radio'] {
        margin-right: 4px;
      }
    }
    .formLabel {
      @include flex-shrink(0);
    }
    .avatarEdit {
      @include align-items(center);
    }
    img {
      width: 38px;
      height: 38px;
      background: #33ab9f;
    }
  }
  .submitInfo {
    width: 72px;
    margin-top: 16px;
    height: 38px;
    @include align-self(center);
    &:hover {
      height: 38px;
      margin-top: 16px;
    }
  }
}
